package com.example.ljw.frescowallpaper.base;

import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;


/**
 * Created by LJW on 2016/11/14.
 */

/**
 * 加上统计代码
 */

public class BaseFragment  extends Fragment {
    private Activity activity;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
        activity=(Activity) context;
    }

    public Activity getMyActivity() {
        return activity;
    }



}
